<?php

class Resource extends AppModel {
	
	public $actAs = array(
		'Uploader.Attachment' => array (
			'file' => array (
				'nameCallback' => '',
				'append' => '',
				'prepend' => '',
				'tempDir' => TMP,
				'uploadDir' => '',
				'transportDir' => '',
				'finalPath' => '',
				'dbColumn' => '',
				'metaColumns' => array(),
				'defaultPath' => '',
				'overwrite' => false,
				'stopSave' => true,
				'allowEmpty' => true,
				'transforms' => array(),
				'transport' => array(),
				'curl' => array()
			)
		)
	);
	
	public function getFileName($name, $file) {
		//$ext = pathinfo($file->path(), PATHINFO_EXTENSION);
		$fileName = uniqid("sn-", true);
		return $fileName;
	}
	
}